package com.huangguolin.cloud.api.Class.repository;


import com.huangguolin.cloud.api.Class.entity.ApiClassSearchEntity;
import com.huangguolin.cloud.mybatis.entity.PtClassEntity;
import com.huangguolin.cloud.mybatis.entity.PtUserEntity;
import com.huangguolin.cloud.mybatis.flexigrid.PagingEntity;
import com.huangguolin.cloud.mybatis.ztree.TransferEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ApiClassDao {
    List<PtClassEntity> queryClassList(@Param("entity") ApiClassSearchEntity entity, @Param("paging") PagingEntity paging);

    Integer queryClassTotal(@Param("entity") ApiClassSearchEntity entity);

    void deleteClass(@Param("classIdArray") String[] classIdArray);

    void addClass(@Param("teacher")String teacher,
                  @Param("className") String className,
                  @Param("classprofile") String classprofile,
                  @Param("cover") String picture,
                  @Param("privacy")String privacy,
                  @Param("classId")String classId,
                  @Param("creatTime")String creatTime,
                  @Param("classNumber")String classNumber
    );

    /**
     *
     * @return
     */
    List<TransferEntity> query();
}
